HomeModel = {
   createHotBooks: function(hotBooks){
       var arrHotBooks = [];
       var result = [];
       var hotBook = null;
	
       arrHotBooks = hotBooks.getElementsByTagName("book");
       try{
       	for(var i = 0; i < arrHotBooks.length; i++){
           hotBook = new HotBook(arrHotBooks[i].childNodes[0].childNodes[0].nodeValue, arrHotBooks[i].childNodes[3].childNodes[0].nodeValue, arrHotBooks[i].childNodes[1].childNodes[0].nodeValue, arrHotBooks[i].childNodes[4].childNodes[0].nodeValue);
           result.push(hotBook);
       	}
       } catch(ex){}
       return result;
   }
};

var HotBook = function(id, pic, name, price){
    this.BookId = id;
	this.Pic = pic;
	this.Name= name;
	this.Price = price;
}

var ListHotBook = function(hotBooks){
	this.HotBooks = hotBooks;
}
